﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BNet_Bot
{
    public class BNetClient
    {
        private SocketConnection connection;

        public bool UseProxy = false;
        public string BNetIP;
        public int BNetPort;
        public string ProxyIP;
        public int ProxyPort;
        public string Client;

        public BNetClient()
        {
            connection = new SocketConnection();
            connection.Event_ReceivedPacket += new ReceivedPacketEventHandler(ReceivedPacket);
        }

        public void Connect(bool useProxy)
        {
            if (useProxy)
            {
                connection.Connect(BNetIP, BNetPort, ProxyIP, ProxyPort);
            }
            else
            {
                connection.Connect(BNetIP, BNetPort);
            }
        }

        public void ReceivedPacket(byte[] buffer)
        {

        }
    }
}
